package cn.ellacat.game.guess;

/**
 * @author wjc133
 */
public enum CardColor {
    /**
     * 黄牌
     */
    YELLOW(1, "黄"),
    /**
     * 蓝牌
     */
    BLUE(2, "蓝");

    private final int priority;
    private final String name;

    CardColor(final int priority, final String name) {
        this.priority = priority;
        this.name = name;
    }

    public static int compare(final CardColor c1, final CardColor c2) {
        return c1.priority - c2.priority;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
